package org.nimi317.web_gis.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 *
 * </p>
 *
 * @author nimi317
 * @since 2024-01-03
 */
@Getter
@Setter
@ToString
public class Station implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.INPUT)
    private String stationCode;

    private String positionName;

    private String latitude;

    private String longitude;

    @JsonIgnore
    @TableField(select = false)
    private LocalDate createTime;

    private Integer cityCode;

    private Boolean status;

    @TableField(exist = false)
    private StationQuality stationQuality;
}
